import { createApp } from 'vue';
import { createPinia } from 'pinia';

import App from './App.vue';
import router from './router';

import { getCategoryAPI } from './apis/layout';
// 引入初始化样式
import "@/styles/common.scss"
getCategoryAPI().then(res=>{
  console.log(res);
})
const app = createApp(App);

app.use(createPinia());
app.use(router);

app.mount('#app');


// 全局指令注册
import { lazyPlugin } from '@/directives'
app.use(lazyPlugin)